<template>
    <div class="getdesc-container">
        <h3>{{getdesclist.title}}</h3>
        <hr>
        <div class="goodsdesc-content" v-html="getdesclist.content">

        </div>
    </div>
</template>

<script>
export default {
     data() {
        return{
            getdesclist:{},
         }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
    },
    created(){
        this.getgoodsdesc();
    },
    methods:{
        getgoodsdesc(){
            this.$http.get("api/goods/getdesc/"+this.$route.params.id)
            .then(result=>{
                if(result.body.status ===0 ){
                    this.getdesclist = result.body.message[0];
                }
            })
        }
    }
}
</script>

<style lang="scss" >
    .getdesc-container{
        padding: 4px;
        h3{
            font-size: 16px;
            color: rgb(37, 22, 245);
            text-align: center;
            margin: 10px 0;
        }
        .goodsdesc-content{
            img{
            width: 100%;
            }
        }
    }
</style>